package com.example.streamsqlpark.base.util;

import java.io.Serializable;
import java.net.URI;
import java.net.URISyntaxException;

/**
 * @author voloiono
 * @date 2024/4/17 12:15
 */
public class CommonUtil implements Serializable {
    private CommonUtil() {
    }

    private static final long serialVersionUID = 1L;

    public static boolean isLegalUrl(String url){
        try {
            new URI(url);
            return true;
        } catch (URISyntaxException e) {
            return false;
        }
    }
}
